package com.ruoyi.active.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品附件对象 tb_prod_atta
 * 
 * @author ruoyi
 * @date 2025-08-01
 */
public class TbProdAtta extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long attaId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long prodId;

    /** 商品视频 */
    @Excel(name = "商品视频")
    private String attaVideo;

    /** 定时上架标识 */
    @Excel(name = "定时上架标识")
    private Long upFlag;

    /** 定时上架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "定时上架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date upTime;

    /** 定时下架标识 */
    @Excel(name = "定时下架标识")
    private Long downFlag;

    /** 定时下架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "定时下架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date downTime;

    /** 轮播图片 */
    @Excel(name = "轮播图片")
    private String attaImages;

    public void setAttaId(Long attaId) 
    {
        this.attaId = attaId;
    }

    public Long getAttaId() 
    {
        return attaId;
    }

    public void setProdId(Long prodId) 
    {
        this.prodId = prodId;
    }

    public Long getProdId() 
    {
        return prodId;
    }

    public void setAttaVideo(String attaVideo) 
    {
        this.attaVideo = attaVideo;
    }

    public String getAttaVideo() 
    {
        return attaVideo;
    }

    public void setUpFlag(Long upFlag) 
    {
        this.upFlag = upFlag;
    }

    public Long getUpFlag() 
    {
        return upFlag;
    }

    public void setUpTime(Date upTime) 
    {
        this.upTime = upTime;
    }

    public Date getUpTime() 
    {
        return upTime;
    }

    public void setDownFlag(Long downFlag) 
    {
        this.downFlag = downFlag;
    }

    public Long getDownFlag() 
    {
        return downFlag;
    }

    public void setDownTime(Date downTime) 
    {
        this.downTime = downTime;
    }

    public Date getDownTime() 
    {
        return downTime;
    }

    public void setAttaImages(String attaImages) 
    {
        this.attaImages = attaImages;
    }

    public String getAttaImages() 
    {
        return attaImages;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("attaId", getAttaId())
            .append("prodId", getProdId())
            .append("attaVideo", getAttaVideo())
            .append("upFlag", getUpFlag())
            .append("upTime", getUpTime())
            .append("downFlag", getDownFlag())
            .append("downTime", getDownTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("attaImages", getAttaImages())
            .toString();
    }
}
